﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterBody.Master" AutoEventWireup="true"
    CodeBehind="Contact.aspx.cs" Inherits="Besture.UI.Company.Contact" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="banner">
        <div class="help-ban w980"><img src="/Upload/Images/Banner/<%=_BannerTop.ImageUrl%>"/>
        	<%=_BannerTop.ImageRemark%>
        </div>
    </div>
    <div class="main">
        <div class="w980">
            <div class="position">
                您当前的位置：<a href="/Index.aspx">首页</a> &gt; <a href="Introduction.aspx">公司介绍</a> &gt;
                联系我们
            </div>
            <div class="map-cen clearfix">
                <div class="map-left">
                    <h2>
                        公司介绍</h2>
                    <div class="leftnav">
                        <ul>
                            <li><a href="Introduction.aspx"><span>恒君介绍</span> </a></li>
                            <li><a href="Idea.aspx"><span>公司理念</span></a></li>
                            <li><a href="Executives.aspx"><span>高管介绍</span> </a></li>
                            <li><a href="Partner.aspx"><span>合作伙伴</span></a></li>
                            <li><a href="Development.aspx"><span>职业发展</span> </a></li>
                            <li class="on"><a href="javascript:void(0);"><span>联系我们</span></a></li>
                        </ul>
                    </div>
                </div>
                <div class="map-right">
                    <div class="map-righta">
                        <h2>
                            联系我们</h2>
                    </div>
                    <div class="contact">
                        <div class="contact-top">
                            <%=_About.acontent%>
                        </div>
                        <asp:Repeater ID="RpMaps" runat="server">
                            <ItemTemplate>
                                <div class="contact-cen clearfix">
                                    <div class="contact-left">
                                        <div style="width: 375px; height: 275px; border: #ccc solid 1px; padding: 5px" id="mapContainer_<%#Eval("ID") %>" name="mapContainer" mapId="<%#Eval("ID") %>">
                                        </div>
                                    </div>
                                    <div class="contact-right">
                                        <p>
                                            <%#Eval("CompanyName")%></p>
                                        <div class="contact-rightc">
                                            <div class="contact-righta clearfix">
                                                <div class="contact-rightl">
                                                    <img src="/images/contact-icon.png" /></div>
                                                <div class="contact-rightr">
                                                    外线（总机）：<%#Eval("PhoneNum")%></div>
                                            </div>
                                            <div class="contact-righta clearfix">
                                                <div class="contact-rightl">
                                                    <img src="/images/contact-icon1.png" /></div>
                                                <div class="contact-rightr">
                                                    传 真：<%#Eval("Fax")%></div>
                                            </div>
                                            <div class="contact-righta clearfix">
                                                <div class="contact-rightl">
                                                    <img src="/images/contact-icon2.png" /></div>
                                                <div class="contact-rightr" id="companyAddress_<%#Eval("ID") %>">
                                                    公司地址：<%#Eval("CompanyAddress")%></div>
                                            </div>
                                            <div class="contact-righta clearfix">
                                                <div class="contact-rightl">
                                                    &nbsp;</div>
                                                <div class="contact-rightr">
                                                    邮 编：<%#Eval("ZipCode")%></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- //main -->
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.5&ak=EA9420b16951a582e3e9e88d31c3b6ca"></script>
    <script type="text/javascript">
        $(function () {
            $("#TopMenu li").removeClass("on").eq(1).addClass("on");

            $("div[name='mapContainer']").each(function (index, obj) {
                var mapId = $(this).attr("mapId");
                // 百度地图API功能
                var map = new BMap.Map("mapContainer_" + mapId);
                var point = new BMap.Point(116.331398, 39.897445);
                map.centerAndZoom(point, 12);
                // 创建地址解析器实例
                var myGeo = new BMap.Geocoder();
                // 将地址解析结果显示在地图上,并调整地图视野
                myGeo.getPoint($("#companyAddress_" + mapId).text(), function (point) {
                    if (point) {
                        map.centerAndZoom(point, 16);
                        map.enableScrollWheelZoom();
                        map.addOverlay(new BMap.Marker(point));
                    }
                }, "上海市");
            });
        }) </script>
</asp:Content>
